package cn.sz.tm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.sz.tm.dao.StoreHouseDao;
import cn.sz.tm.service.StoreHouseService;
@Service
public class StoreHouseServiceImpl implements StoreHouseService {

	@Autowired
	private StoreHouseDao storehousedao;
	
	public Integer findCountByBookid(Integer bookid) {
		if(bookid==null) {
			return 0;
		}
		return storehousedao.findCountByBookid(bookid);
	}

}
